import { Module } from "@nestjs/common";
import { AccountsService } from "./accounts.service";
import { AccountsController } from "./accounts.controller";
import { AutomapperModule } from "@automapper/nestjs";
import { AccountProfile } from "./automapper.profile";
import { TypeOrmModule } from "@nestjs/typeorm";
import { Account } from "./dao";
import { CryptoModule } from "@/crypto";
import { AccountCommand } from "./accounts.command";

@Module({
    imports: [TypeOrmModule.forFeature([Account]), AutomapperModule, CryptoModule],
    providers: [AccountsService, AccountProfile, AccountCommand],
    controllers: [AccountsController],
    exports: [AccountsService]
})
export class AccountsModule {}
